#ifndef LOD_ERROR_H
#define LOD_ERROR_H
class error
{
    public:
    static const char* descriptions[];

    enum codes 
    {
        OK=0,
        ERROR_couldnot_open_file,
        ERROR_file_IO, 
        ERROR_corrupted_data, 
        ERROR_mem_lack,
    };

    error(codes c, int line_nr)
     : code(c), bad_line(line_nr)
    {
        //code = c;
        //bad_line = line_nr;
    }
    error()
    {
    }

    codes code;
    int bad_line;
};

/*const char* error::descriptions[] =
{
      "",
      "Could not open the file.", 
      "File Input/Output error.", 
      "Corrupted data structure in the file.", 
      "Could not allocate memory."
};*/
#endif
